package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"star/internal/model"
)

type RandListReq struct {
	g.Meta `path:"words/rand"  method:"get" sm:"随机获取单词列表" tags:"单词" `
	Limit  uint `json:"limit" v:"between:1,300" dc:"限制个数，默认50" `
}

type RandListRes struct {
	List []model.WordList `json:"list" dc:"单词id列表" `
}

type SetLeveReq struct {
	g.Meta `path:"words/{id}/setLeve"  method:"post" sm:"设置单词等级" tags:"单词" `
	Id     uint `json:"id" v:"required" dc:"单词id" `
	Leve   uint `json:"leve" v:"required" dc:"单词等级" `
}

type SetLeveRes struct{}
